# Maintainer: Peter Budai <peterbudai@hotmail.com>

_realname=Test-NoWarnings
pkgname=perl-${_realname}
pkgver=1.04
pkgrel=1
pkgdesc="Make sure you didn't emit any warnings while testing"
arch=('any')
url="http://search.cpan.org/dist/Test-NoWarnings"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-Test-Simple')
options=('!emptydirs')
groups=('perl-modules')
source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/${_realname}-${pkgver}.tar.gz")
sha256sums=('638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c')

build() {
  cd ${_realname}-${pkgver}
  perl Makefile.PL installdirs=vendor
  make
}

check() {
  cd ${_realname}-${pkgver}
  make test
}

package() {
  cd ${_realname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
